package com.ysh.contentcenter.controller;

import com.ysh.contentcenter.domain.dto.content.ShareAuditDTO;
import com.ysh.contentcenter.domain.entity.content.Share;
import com.ysh.contentcenter.service.content.ShareService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/shares")
@RequiredArgsConstructor
public class ShareAdminController {
    private final ShareService shareService;
    @PutMapping("/audit/{id}")
    public Share auditById(@PathVariable  Integer id,@RequestBody ShareAuditDTO auditDTO){
        //TODO 认证，授权
        return this.shareService.auditById(id,auditDTO);
    }
}
